﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tensop.Net.Http
{
    public enum HttpVersion
    {
        Http_1_0=0,
        Http_1_1,
    }
    public enum HttpStatusCode
    {
        ConnectionError,
        Continue=100,
        Swiching=101,

        Ok =200,
        Created=201,
        NonAuthoritativeInformation =203,
        NoContent=204,
        ResetContent=205,
        ParialContent=206,

        MultipleChoices =300,
        MovedPermanently = 301,
        Found=302,
        SeeOther=303,
        NotModifier=204,
        UseProxy=305,
        Unused=306,
        TemporaryRedirect=307,

        BadRequest = 400,
        Unauthorized=401,
        PaymentRequired=402,
        Forbidden = 403,
        NotFound=404,
        MethodNotAllowed=405,
        NotAcceptable=406,
        ProxyAuthenticationRequired=407,
        RequestTimeout=408,
        Conflict=409,
        Gone=410,
        LengthRequired=411,
        PreconditionFailed=412,
        RequestEntityTooLarge=413,
        RequestURITooLarge=414,
        UnSupportedMediaType=415,
        RequestedRangeNotSatisfiable=416,
        ExpectationFailed=417,

        InternalServerError=500,
        NotImplemented=501,
        BadGateway=502,
        ServiceUnavaliable=503,
        GatewayTimeout=504,
        HttpVersionNotSupported=505
    }

    public enum HttpMethod
    {
        GET,
        POST,
        CONNECT,
        PUT,
    }
}
